import request from '@/utils/request'

// 查询CarouselItem列表
export function loadDataList(query) {
	return request({
		url: '/carouselItem/loadDataList',
		method: 'get',
		params: query
	})
}
// 新增CarouselItem
export function addCarouselItem(data) {
	return request({
		url: '/carouselItem/add',
		method: 'post',
		data: data
	})
}
//查询CarouselItem详细
export function getCarouselItemById(carouselItemId) {
	return request({
		url: '/carouselItem/getCarouselItemById/' + carouselItemId,
		method: 'get',
	})
}
//修改CarouselItem
export function updateCarouselItemById(data,carouselItemId) {
	return request({
		url: '/carouselItem/updateCarouselItemById/'+carouselItemId,
		method: 'put',
		data: data
	})
}
//删除CarouselItem
export function delCarouselItemById(carouselItemId) {
	return request({
		url: '/carouselItem/deleteCarouselItemById/'+carouselItemId,
		method: 'delete',
	})
}
